AI-based upper limb robotic therapy